package com.hp.weather.schedule;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 天气同步定时任务
 * @author haopeng
 */
@Component
@EnableScheduling
@Slf4j
public class WeatherScheduleTask {

    @Scheduled(cron = "0 0/10 * * * ?")
    public void task() {
       log.info("Perform scheduled tasks ...");
    }
}
